package com.javaweb.dao;

import com.javaweb.aop.NPECatch;
import com.javaweb.model.Permission;

import java.util.List;

@NPECatch
public interface PermDao {

    public Integer insert(Permission perm) ;

    public Integer insertRolePerm(int roleId, int permId) ;
    public Permission selectOne(String name, String url) ;
    public Permission selectOneById(int permId) ;

    public List<Permission> selectPermsByRoleName(String roleName) ;

    public List<Permission> selectPermsByRoleId(int roleId) ;

    public Integer deleteById(int permId) ;

}
